package cn.com.note.view;

import android.content.Context;
import android.graphics.Typeface;
import android.support.annotation.Nullable;
import android.util.AttributeSet;

/**
 * Created by SunFuLin on 2019/3/1.
 */

public class IconFontTextView extends android.support.v7.widget.AppCompatTextView {
    private Context context;
    public IconFontTextView(Context context) {
        super(context);
    }

    public IconFontTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        this.context=context;
        initView();
    }
    private void initView(){
        setTypeface(Typeface.createFromAsset(context.getAssets(), "iconfont.ttf"));
    }
}
